package com.esiag.config;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class PropertyLoader {
	private static final String  PROPERTY_FILE = "configuration.properties";
	private Properties properties = null;
	
	public PropertyLoader(String propertiesFile) {
		Properties properties = new Properties();
		try {
			FileInputStream input = new FileInputStream(propertiesFile);
			properties.load(input);
			this.properties = properties;
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public String getString(String key){
		return properties.getProperty(key);
	}
	public Properties getProperties(){
		return (properties);
	}
}

